package cc.catface.dao.biz.app.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel
public class CommentINDTO {
    @ApiModelProperty(value = "手机号", required = true)
    private String phone;
    @ApiModelProperty(value = "文章ID", required = true)
    private long articleId;
    @ApiModelProperty(value = "频道ID", required = true)
    private int channelId;
    @ApiModelProperty(value = "评论内容类型(0文章1动态)")
    private int type;
    @ApiModelProperty(value = "评论内容", required = true)
    private String content;
    @ApiModelProperty(value = "图片评论", required = true)
    private String imageUrl;
    @ApiModelProperty(value = "文章标记(0普通评论1热点评论2推荐评论3置顶评论4精品评论5大V评论)", required = true, example = "0")
    private int flag;
    @ApiModelProperty(value = "地理位置", required = true)
    private String address;
    @ApiModelProperty(value = "时间[yyyy-MM-dd HH:mm:ss]", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
}
